package contol;

public class BreakControl {
  public static void main(String[] args) {
    for (int i = 0; i < 10; i++) {
      for (int b = 0; b < 10; b++) {
        if (b == 5) break;//break只能跳出一个循环，外层i会继续循环
        System.out.println("b=" + b);
      }
      System.out.println("i=" + i);
    }
  }
}
